import 'package:flutter/material.dart';
import 'package:mobile_app.home.learning/learning_page/presentation/theme/theme.dart';
import 'package:mobile_app.home.learning.core/theme_provider.dart';
import 'package:mobile_app.home.learning.spaced_repetitions/theme.dart';

class LearningThemeProvider extends StatelessWidget {
  const LearningThemeProvider({
    required this.brightness,
    required this.primaryColor,
    required this.child,
    super.key,
  });

  final Brightness brightness;
  final Color primaryColor;
  final Widget child;

  @override
  Widget build(BuildContext context) {
    return LearningCoreThemeProvider(
      brightness: brightness,
      child: SpacedRepetitionTheme(
        brightness: brightness,
        child: LearningPageTheme(
          brightness: brightness,
          child: child,
        ),
      ),
    );
  }
}
